from pydantic import BaseModel, Field
import typing as T
from datetime import datetime


class UserKnowledge(BaseModel):
    """
    插入向量数据库的实体
    """

    userId: int = Field(description="用于标识用户的唯一id")
    content: str = Field(description="用户知识库的内容")
    embedding: T.List[float] = Field(description="用户知识库内容的向量表示")
    metadata: T.Dict[str, T.Any] = Field(description="用户知识库的元数据")
    knowledgeBaseId: int = Field(description="用户知识库的id")
